#pragma warning(disable:4996)
#include<stdio.h>
#include<math.h>
int main()
{
	int digit, number, pows, t_number;
	scanf("%d", &number);
	t_number = number;
	pows = 1;
	while (t_number>10) {
		pows *= 10;
		t_number /= 10;
	}
	while (pows >= 1) {
		digit = number / pows % 10;
		pows /= 10;
		printf("%d ", digit);
	}
	printf("\n");
	return 0;
}